<?php
/*
 * Created on Apr 30, 2012
 *
 * To change the template for this generated file go to
 * Window - Preferences - PHPeclipse - PHP - Code Templates
 */

require_once("model/IJson.php");

class Photo implements IJson{
	var $photoId,$caption,$imageDataLarge,$imageDataMed,$imageDataThumb,$imageType,$imageSize,$imageName,$ext;
	function __construct(){}
	
	
	function toJson(){
		$_json = "{".
				sprintf("\"photoId\":%d,", $this->photoId).
				sprintf("\"caption\":%d,", $this->caption).
				sprintf("\"imageType\":%d,", $this->imageType).
				sprintf("\"imageSize\":%d,", $this->imageSize).
				sprintf("\"imageName\":%s,", $this->imageName).
				sprintf("\"ext\":%s", $this->ext).
				"}";
		return $_json;
	}
}
?>
